package com.monitor.dao;

import java.util.List;

import com.monitor.po.RemoteSms;
import com.monitor.util.Pager;

public interface RemoteSmsDao {

	void addRemoteSms(RemoteSms sms) throws Exception;

	int deleteRemoteSmsById(long id) throws Exception;

	int deleteRemoteSmsByUid(long uid) throws Exception;

	int deleteRemoteSms(long[] ids) throws Exception;

	Pager<RemoteSms> getRemoteSmsByUid(long uid, int currentPage, int pageSize) throws Exception;

	int updateRemoteSmsExcutedStatus(long[] ids, boolean excuted) throws Exception;

	List<RemoteSms> getRemoteSmsByUid(long uid, int pageSize) throws Exception;

	/**
	 * 获取已发送的短信数量
	 * 
	 * @param uid
	 * @return
	 * @throws Exception
	 */
	int getSentRemoteSmsCount(long uid) throws Exception;

	int getUnSentRemoteSmsCount(long uid) throws Exception;
}
